<template>
  <div class="error-page">
    <el-card class="error-card">
      <div class="error-content">
        <h1>403</h1>
        <h2>无权限访问</h2>
        <p>抱歉，您没有权限访问此页面</p>
        <el-button type="primary" @click="goBack">返回上一页</el-button>
        <el-button @click="goHome">返回首页</el-button>
      </div>
    </el-card>
  </div>
</template>

<script setup>
import { useRouter } from 'vue-router'

const router = useRouter()

const goBack = () => {
  router.go(-1)
}

const goHome = () => {
  router.push('/')
}
</script>

<style scoped>
.error-page {
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}

.error-card {
  text-align: center;
  max-width: 500px;
}

.error-content h1 {
  font-size: 72px;
  color: #409eff;
  margin: 0;
}

.error-content h2 {
  font-size: 24px;
  color: #303133;
  margin: 20px 0;
}

.error-content p {
  font-size: 16px;
  color: #606266;
  margin: 20px 0;
}

.error-content .el-button {
  margin: 10px;
}
</style> 